package com.example.demo;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.stereotype.Component;

/**
 * @Author x c
 * @Email 378661553@qq.com
 * @Date Created in 2020/2/11 15:44
 * 如果是打War包部署时，需要将该类加入到Spring容器中
 */
@Component
public class WarServletInitializer extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(WebMybatisApplication.class);
    }
}
